﻿<%@ Page EnableViewState="false" Language="C#" AutoEventWireup="true" CodeBehind="NewTopic.aspx.cs"
    Inherits="DDDProjectSample.WebUI.NewTopic" MasterPageFile="~/Page.Master" %>
<%@ MasterType VirtualPath="~/Page.Master" %>

<asp:Content ContentPlaceHolderID="HeadContentPlaceHolder" runat="server">
    <style type="text/css">
        .rowHeader
        {
            width: 151px;
            vertical-align: top;
        }
        .rowButtons
        {
            text-align: right;
        }
        .button
        {
            margin-left: 2px;
        }
    </style>
</asp:Content>
<asp:Content ContentPlaceHolderID="HeaderMenuContentPlaceHolder" runat="server">
    <a href="<%= ResolveUrl("~/Default.aspx") %>">Home</a>
</asp:Content>
<asp:Content ContentPlaceHolderID="LeftContentPlaceHolder" runat="server">
    <div>
        <table style="width: 100%;">
            <tr>
                <td class="rowHeader">
                    Title :
                </td>
                <td>
                    <asp:TextBox ID="TextBoxTitle" runat="server" Width="100%"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Please enter a title"
                        ControlToValidate="TextBoxTitle" Display="None" ValidationGroup="CreateTopic"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="rowHeader">
                    Message :
                </td>
                <td>
                    <asp:TextBox ID="TextBoxMessage" runat="server" Height="200px" TextMode="MultiLine"
                        Width="100%"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Please enter a message"
                        ControlToValidate="TextBoxMessage" Display="None" ValidationGroup="CreateTopic"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="rowButtons" colspan="2">
                    <asp:Button CssClass="button" ID="ButtonSave" runat="server" Text="Save" OnClick="ButtonSave_Click"
                        ValidationGroup="CreateTopic" />
                    <asp:Button CssClass="button" ID="ButtonCancel" runat="server" Text="Cancel" OnClick="ButtonCancel_Click"
                        CausesValidation="False" />
                </td>
            </tr>
        </table>
    </div>
    <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True"
        ShowSummary="False" ValidationGroup="CreateTopic" />
</asp:Content>
